<?php include(TPL_PATH . '/inc_header.php'); ?>
<?php include(TPL_PATH . '/inc_top.php'); ?>
<?php include(TPL_PATH . '/inc_left.php'); ?>
      
<!--right-->
<div class="right">

	<?php if (is_array($arrList) && count($arrList) > 0) { foreach ($arrList as $arrTemp) { 
	    empty($arrTemp['thumb']) && $arrTemp['thumb'] = '/uploads/no_image.jpg';
	    $strTemp = HTTP_URL . '/' . $arrCatAll['_' . $arrTemp['cat_id']]['name_en'] . '-' . $arrTemp['id'] . '.html';
	?>
    <div class="right-list">
    	<div class="new_img">
    		<a target="_blank" href="<?php p($strTemp) ?>"><img name="thumb" src="<?php p(HTTP_URL . $arrTemp['thumb']) ?>" width="120" height="120" title="<?php p($arrTemp['title']) ?>" onerror="this.src='<?php p(HTTP_URL . '/uploads/no_image.jpg') ?>';" alt="" /></a>
		</div>
        <div class="new_titcon">
          <h2>
          	<span>[<a href="<?php p(HTTP_URL . '/' . $arrCatAll['_' . $arrTemp['cat_id']]['name_en'] . '.html') ?>"><?php p($arrCatAll['_' . $arrTemp['cat_id']]['name']) ?></a>]</span><a target="_blank" href="<?php p($strTemp) ?>"><?php p(Helper::strCut($arrTemp['title'], 81)) ?></a>
      	  </h2>
          <p class="desc"><?php p(Helper::strCut($arrTemp['desc'], 255)) ?></p>
          <p class="author">
          <?php if (!empty($arrTemp['tags'])) { ?>
          	关键词：<?php p(Helper::strCut($arrTemp['tags'], 84)); } ?>
          </p>
          <p class="time">发布时间：<?php p(substr($arrTemp['created_at'], 0, 10)) ?></p>
        </div>
    </div>
    
    <?php }} else { ?>
    
    <div class="right-list">
    	Sorry, 暂无记录!
    </div>
    
    <?php } ?>
        
	<?php p($strPager) ?>
	
</div>
      
<?php include(TPL_PATH . '/inc_bottom.php'); ?>
<?php include(TPL_PATH . '/inc_footer.php'); ?>